<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>My JSP 'studentdetail.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<link rel=stylesheet href="css/demo.css" type="text/css">

</head>


<script >

function back() {

	location.href = "Student_list.action";

}

</Script>

<body  topmargin="10" leftmargin="10"  ondrag="return false" >

	<form name="frmAction"  method="post" action="" >

	<table width="95%" border="0" cellpadding="3" cellspacing="1" class="toolBar" align="center">

      	<tr align=left class="colom">

			<td colspan="2">学生信息

			</td>

		</tr>

		<tr class=even>

			<td width='100' align='right' nowrap>姓名&nbsp;</td>

			<td bgcolor='#ffffff'>${requestScope.student.stuname}</td>

		</tr>

		<tr class=even>

			<td width='100' align='right' nowrap>学号&nbsp;</td>

			<td bgcolor='#ffffff'>${requestScope.student.stunumber}</td>

		</tr>

		<tr class=even>

			<td width='100' align='right' nowrap>生日&nbsp;</td>

			<td bgcolor='#ffffff'>${student.birthday}

				</td>

		</tr>

		<tr class=even>

			<td width='100' align='right' nowrap>性别&nbsp;</td>

			<td bgcolor='#ffffff'>

                 <c:if test="${student.sex == 1}">
								男
							</c:if>
							<c:if test="${student.sex==2 }">
								女
							</c:if>

            </td>

		</tr>

		<tr class=even>

			<td width='100' align='right' nowrap>政治面貌&nbsp;</td>

			<td bgcolor='#ffffff'>
                            <c:choose>
								<c:when test="${student.stuPolity==1}">党员</c:when>
								<c:when test="${student.stuPolity==2}">团员</c:when>
								<c:when test="${student.stuPolity==3}">无党派</c:when>
								<c:otherwise>其他</c:otherwise>
							</c:choose>
			</td>

		</tr>

		<tr class=even>

			<td width='100' align='right' nowrap>简介&nbsp;</td>

			<td bgcolor='#ffffff'>${requestScope.student.stuBrief}</td>

		</tr>



		<tr class=even>

		   	<td  height=35 colspan="2" >

	   			<input class="input" type="button" value="返回" onclick="back()" >

		   </td>

		</tr>

	</table>
	</form>

  </body>
</html>
